<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/12/10
 * Time: 11:36
 */
file_put_contents("1.txt", date('Y-m-d H:i:s')."============message===============" . PHP_EOL, FILE_APPEND);
file_put_contents("1.txt", serialize($_REQUEST) . PHP_EOL, FILE_APPEND);

require('../vendor/autoload.php');
require('../define.php');
require('action/api_open.php');
require('util/WechatPlatform.php');

$response = \wechat\util\WechatPlatform::getOpenPlatformInstance()->server->serve();
$response->send();
exit;
